<template>
  <div class="page">
    <headerTItle :CNtitle="`合作媒体`" :ENtitle="`COOPERATIVE MEDIA`"></headerTItle>
    <div class="oneBox">
      <div class="mediaList">
        <div v-for="item in mediaList" :key="item.id" class="mediaItem">
          <img :src="item.logo" alt="">
          
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getWebMediaList } from '@/api/index'
import headerTItle from "@/components/headerTItle.vue";
export default {
  data() {
    return {
      mediaList: [],
    };
  },
  components: {
    headerTItle,
  },
  created() {
    getWebMediaList({code: 'fb'}).then(res => {
      this.mediaList = res.data.data;
    })
  },
};
</script>

<style scoped lang="scss">
.mediaList{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 1.625rem 1.25rem;
  .mediaItem{
    position: relative;
    width: 13.625rem;
    height: 9.0625rem;
    img{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
</style>
